package com.qyhl.webtv.module_circle.circle.detail;


import com.qyhl.webtv.commonlib.entity.circle.CircleHomeBean;

import java.util.List;

/**
 * Created by qyhl on 2018/1/29.
 */

public interface CircleDetailContract {
    interface CircleDetailView {
        void setDetail(CircleHomeBean bean);

        void setComment(List<CircleHomeBean.PostList> beanList);

        void setCommentError(String msg);

        void setError(String msg);

        void setNetError(String msg);

        void followSuccess(String msg);

        void followError(String msg);

        void doLoveSuccess();

        void doLoveError(String msg);

        void undoLoveSuccess();

        void undoLoveError(String msg);

        void commentSuccess(String msg, int code);

        void commentError(String msg);

        void deleteSuccess();

        void deleteError(String msg);

        void deleteTopicSuccess();

        void deleteTopicError(String msg);

        void checkPass();

        void checkUnPass(String msg);
    }

    interface CircleDetailPresenter {
        void getDetail(String topicId);

        void getComment(String topicId, String lastId);

        void doFollow(String dstUserName);

        void doLove(String topicId);

        void undoLove(String topicId);

        void setComment(List<CircleHomeBean.PostList> beanList);

        void setDetail(CircleHomeBean bean);

        void setError(int code, String msg);

        void followSuccess(String msg);

        void followError(String msg);

        void doLoveSuccess();

        void doLoveError(String msg);

        void undoLoveSuccess();

        void undoLoveError(String msg);

        void sendMessage(String topicId, String content, String dstUsername);

        void commentSuccess(String msg, int code);

        void commentError(String msg);

        void deleteComment(String postId);

        void deleteSuccess();

        void deleteError(String msg);

        void deleteTopic(String topic);

        void deleteTopicSuccess();

        void deleteTopicError(String msg);

        void checkShield(String dstUsername);

        void checkResult(int code, String msg);

    }

    interface CircleDetailModel {
        void getDetail(String topicId);

        void getComment(String topicId, String lastId);

        void doFollow(String dstUserName);

        void doLove(String topicId);

        void undoLove(String topicId);

        void sendMessage(String topicId, String content, String dstUsername);

        void deleteComment(String postId);

        void deleteTopic(String topic);

        void checkShield(String dstUsername);


    }

}
